package com.shure.modules.docs.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.shure.common.base.BaseEntity;
import lombok.Data;

import java.util.List;

/**
 * 文件夹表
 *
 * @TableName tb_folders
 */
@TableName(value = "tb_folders")
@Data
public class Folders extends BaseEntity {
    /**
     *
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 名称
     */
    private String name;

    /**
     * 父级ID
     */
    private Integer pId;

    @TableField(exist = false)
    private List<Folders> children;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

}